package system

import (
	"github.com/gin-gonic/gin"
	"server/api"
)

type MenuRouter struct {
}

func (s *MenuRouter) InitMenuRouter(Router *gin.RouterGroup) (R gin.IRoutes) {
	R = Router.Group("sys-menu")
	var menuApi = api.ApiGroupApp.SystemApiGroup.MenuApi
	{
		R.GET("index", menuApi.Index)
		R.POST("save", menuApi.Save)
		R.POST("destroy", menuApi.Destroy)
		R.POST("set-order", menuApi.SetOrder)
	}
	return
}
